This page last changed on Feb 17, 2006 by [email protected].

Tag - collect

Description

Uses the Groovy JDK collect method to iterate over each element of the specified object transforming the result using the expression in the closure

Parameters

  • in - The object to iterative over

Examples

Books titles:
<g:collect in="${books}" expr="it.title">
     <p>Title: ${it}</p>
</g:collect>

 

Document generated by Confluence on Mar 29, 2006 08:46